package composer.base;

public class Note {

	private byte tone;
	private byte intensity;
	private int position;
	private byte duration;
	
	public Note(byte tone, byte intensity, int position, byte duration) {
		this.tone = tone;
		this.intensity = intensity;
		this.position = position;
		this.duration = duration;
	}
	
	public Note(int tone, int intensity, int position, int duration){
		this((byte)tone, (byte) intensity, position, (byte) duration);
	}

	public byte getDuration() {
		return duration;
	}

	public byte getIntensity() {
		return intensity;
	}

	public int getPosition() {
		return position;
	}

	public byte getTone() {
		return tone;
	}
	
}
